From: Jonas Dreßler Date: Fri, 24 Jun 2022 11:15:41 +0000 (+0200) Subject: appDisplay: Consider drag events during page-switching as invalid X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~405^2^2~130 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=40bd48068f42b89ec7682ff3e8cd3d6261c0b79d;p=gnome-shell.git appDisplay: Consider drag events during page-switching as invalid While there's an ongoing animation to switch pages, we should ignore all drag events as those will end up moving the drag item to an unwanted position. Part-of: --- diff --git a/js/ui/appDisplay.js b/js/ui/appDisplay.js index 0d0b1e56a..3c7d2f3d4 100644 --- a/js/ui/appDisplay.js +++ b/js/ui/appDisplay.js @@ -798,6 +798,7 @@ var BaseAppView = GObject.registerClass({ // Dragging over invalid parts of the grid cancels the timeout if (item === source || + this._adjustment.get_transition('value') !== null || page !== this._grid.currentPage || dragLocation === IconGrid.DragLocation.INVALID || dragLocation === IconGrid.DragLocation.ON_ICON) {